class Task(object):
    def __init__(self, name, lvg):
        self.name = name
        self.lvg = lvg

class VolumeGroup(object):
    def __init__(self, vg, pvs):
        self.vg = vg
        self.pvs = pvs

def create(vg, pvs):
    lvg = VolumeGroup(vg, "/dev/"+pvs)
    task = Task("Create Volume Group "+vg, vars(lvg))
    # return dict
    return vars(task)
